Package com.cisco.pt.ipc.sim.impl
Class AsaAccessGroupManagerImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.AsaAccessGroupManagerImpl
- All Implemented Interfaces:
IPCObject,AsaAccessGroupManager
Information provided by the PKI file:
\class CAsaAccessGroupManager
\brief CAsaAccessGroupManager is the asa object storage manager class that is used to store and retrieve asa object.
\example network().getDevice("Router0").getObjectManager()->getObjectByName("objectName")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionAsaAccessGroupManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAccessGroup(Direction direction, String nameIf, String aclId) Information provided by the PKI file:booleandeleteAccessGroup(Direction direction, String nameIf, String aclId) Information provided by the PKI file:booleandeleteAccessGroupWithNameIf(String nameIf) Information provided by the PKI file:getAccessGroupAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
AsaAccessGroupManagerImpl
public AsaAccessGroupManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
deleteAccessGroupWithNameIf
Information provided by the PKI file:
\brief delete the access-group that associates with the specified nameIf. \param nameIf, the nameIf of the interface that has access-list applied on.- Specified by:
deleteAccessGroupWithNameIfin interfaceAsaAccessGroupManager- Parameters:
nameIf- Takes in a parameter of nameIf- Returns:
- boolean Returns a boolean
-
deleteAccessGroup
Information provided by the PKI file:
\brief delete the access-group that associates with the specified nameIf, aclId and in a certain direction. \param direction, the traffic direction \param nameIf, nameIf of the interface that has the acl applied on \param aclId, acl id of the acl- Specified by:
deleteAccessGroupin interfaceAsaAccessGroupManager- Parameters:
direction- Takes in a parameter of directionnameIf- Takes in a parameter of nameIfaclId- Takes in a parameter of aclId- Returns:
- boolean Returns a boolean
-
addAccessGroup
Information provided by the PKI file:
\brief add a new access-group. \param direction, the traffic direction eIn =0, eOut, eGlobal \param nameIf, nameIf of the interface that has the acl applied on \param aclId, acl id of the acl. \return bool, value is true if the add was successful, false if not.- Specified by:
addAccessGroupin interfaceAsaAccessGroupManager- Parameters:
direction- Takes in a parameter of directionnameIf- Takes in a parameter of nameIfaclId- Takes in a parameter of aclId- Returns:
- boolean Returns a boolean
-
getAccessGroupAt
Information provided by the PKI file:
\brief Return the access-group at a specified index. \param index, index of the access group to get. Range (0, getAccessGroupCount()).- Specified by:
getAccessGroupAtin interfaceAsaAccessGroupManager- Parameters:
index- Takes in a parameter of index- Returns:
- AsaAccessGroup Returns a AsaAccessGroup
-
getAccessGroupCount
public int getAccessGroupCount()Information provided by the PKI file:
\brief Return the number of access-group configured. \return int, value is how many access groups there are total.- Specified by:
getAccessGroupCountin interfaceAsaAccessGroupManager- Returns:
- int Returns a int
-